package com.ifar.audiosdk.pop

import android.content.Context
import android.content.Intent
import android.widget.Toast
import com.ifar.audiosdk.R
import com.ifar.audiosdk.activity.CallInActivity
import com.lxj.xpopup.impl.FullScreenPopupView
import kotlinx.android.synthetic.main.activity_call_in.view.*

class CallInPop(context: Context) : FullScreenPopupView(context) {
    private val mContext: Context = context

    override fun getImplLayoutId(): Int = R.layout.activity_call_in

    override fun onCreate() {
        super.onCreate()
        ivAnswer.setOnClickListener {
            mContext.startActivity(Intent(mContext, CallInActivity::class.java))
            dismiss()
            Toast.makeText(mContext, "111111", Toast.LENGTH_LONG).show()
        }
    }
}